package com.whiteape.book.model.bo;

import com.whiteape.book.model.dto.SiteSourceBean;
import com.whiteape.book.model.dto.SiteSourceSearchResultBean;
import com.whiteape.book.utils.GsonUtils;

import org.greenrobot.greendao.converter.PropertyConverter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SearchResultBo extends SiteSourceSearchResultBean {
    private SiteSourceBean siteSourceBean;

    private List<SiteSourceBean> backupSiteSourceList;

    private HashMap<String, String> varMap;
    public SearchResultBo(){
        title = "";
        author = "";
        coverUrl ="";
        desc = "";
        wordCount="";
        state="";
        category="";
        lastChapter="";
        lastUpdated="";
        setList("");
        setDetailUrl("");
    }

    public List<SiteSourceBean> getBackupSiteSourceList() {
        return backupSiteSourceList;
    }

    public void setBackupSiteSourceList(List<SiteSourceBean> backupSiteSourceList) {
        this.backupSiteSourceList = backupSiteSourceList;
    }

    public HashMap<String, String> getVarMap() {
        return varMap;
    }

    public void setVarMap(HashMap<String, String> varMap) {
        this.varMap = varMap;
    }

    public SiteSourceBean getSiteSourceBean() {
        return siteSourceBean;
    }

    public void setSiteSourceBean(SiteSourceBean siteSourceBean) {
        this.siteSourceBean = siteSourceBean;
    }

    @Override
    public String toString() {
        return "SearchResultBo{" +
                "siteSourceBean=" + siteSourceBean +
                ", varMap=" + varMap +
                ", mediaType=" + mediaType +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", coverUrl='" + coverUrl + '\'' +
                ", desc='" + desc + '\'' +
                ", wordCount='" + wordCount + '\'' +
                ", state='" + state + '\'' +
                ", category='" + category + '\'' +
                ", lastChapter='" + lastChapter + '\'' +
                ", lastUpdated='" + lastUpdated + '\'' +
                '}';
    }
}
